<%@ page import="com.minxi.jsp.javabean.Userinfo" %><%--
  Created by IntelliJ IDEA.
  User: 陈晓东
  Date: 2024/6/19
  Time: 15:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String contextPath = request.getContextPath();
    Userinfo userinfo = (Userinfo) request.getSession().getAttribute("userinfo");
%>
<form action="<%=contextPath%>/update" method="get">
    <input type="text" name="username" placeholder="请输入用户名" value="<%=userinfo.getUserName()%>"><br>
    <input type="text" name="userPhone" placeholder="请输入手机号码" value="<%=userinfo.getUserPhone()%>"><br>
    <%
        if (1 == userinfo.getUsersex()) {%>
    <input type="radio" name="usersex" value="1" checked>男
    <input type="radio" name="usersex" value="2">女<br>
    <%} else if (2 == userinfo.getUsersex()) {%>
    <input type="radio" name="usersex" value="1">男
    <input type="radio" name="usersex" value="2" checked>女<br>
    <%}%>
    <input type="submit" value="保存"><br>
</form>
</body>
</html>
